#![feature(more_qualified_paths)]

mod graphql;
use napi_derive_ohos::napi;

#[napi]
pub fn login(cred: String, passwd: String, type_: String) -> bool {
    graphql::login_or_reg(cred, passwd, type_)
}

///data: json
#[napi]
pub fn update_data(data: String) -> String {
    graphql::update_data(data)
}
